<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>uCXpresso.BLE: gcHandleT&lt; CType &gt; Class Template Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../upnp.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">uCXpresso.BLE
   &#160;<span id="projectnumber">v1.0.4</span>
   </div>
   <div id="projectbrief">RTOS C++ Framework for Bluetooth Low Energy</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="../../hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d4/ddd/classgc_handle_t.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="../../d5/d0d/classgc_handle_t-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">gcHandleT&lt; CType &gt; Class Template Reference<div class="ingroups"><a class="el" href="../../d8/dba/group___r_t_o_s.html">RTOS</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &quot;<a class="el" href="../../d0/daa/gc_8h_source.html">class/gc.h</a>&quot;</code></p>
<div class="dynheader">
Inheritance diagram for gcHandleT&lt; CType &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="../../d4/ddd/classgc_handle_t.png" usemap="#gcHandleT&lt; CType &gt;_map" alt=""/>
  <map id="gcHandleT&lt; CType &gt;_map" name="gcHandleT&lt; CType &gt;_map">
<area href="../../df/dee/class__gc__.html" alt="_gc_" shape="rect" coords="0,56,134,80"/>
<area href="../../dc/dac/class_c_object.html" alt="CObject" shape="rect" coords="0,0,134,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa8e99b3f41bdbdd88425e25dc36f42a6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#aa8e99b3f41bdbdd88425e25dc36f42a6">gcHandleT</a> (CType *elem=NULL)</td></tr>
<tr class="separator:aa8e99b3f41bdbdd88425e25dc36f42a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8571d5ecadf1847090b04d1ad57f15d5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#a8571d5ecadf1847090b04d1ad57f15d5">gcHandleT</a> (const <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;gc)</td></tr>
<tr class="separator:a8571d5ecadf1847090b04d1ad57f15d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa65ed5c2bf8f467839f30979e507f2d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#afa65ed5c2bf8f467839f30979e507f2d">operator=</a> (<a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;gc)</td></tr>
<tr class="separator:afa65ed5c2bf8f467839f30979e507f2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c0052d6ceaa6fa5015f569fda8ca08a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#a8c0052d6ceaa6fa5015f569fda8ca08a">operator=</a> (CType *elem)</td></tr>
<tr class="separator:a8c0052d6ceaa6fa5015f569fda8ca08a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f51ac1db031f84fa5e76037c38f4589"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#a8f51ac1db031f84fa5e76037c38f4589">operator=</a> (xHandle gc)</td></tr>
<tr class="separator:a8f51ac1db031f84fa5e76037c38f4589"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7f7dff891cf46e8fb191a13f8a080be"><td class="memItemLeft" align="right" valign="top">virtual CType *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#ad7f7dff891cf46e8fb191a13f8a080be">operator-&gt;</a> ()</td></tr>
<tr class="separator:ad7f7dff891cf46e8fb191a13f8a080be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04b30dc7412919df10131b7967fbf705"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#a04b30dc7412919df10131b7967fbf705">operator CType *</a> ()</td></tr>
<tr class="separator:a04b30dc7412919df10131b7967fbf705"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c6e285f9f27ef7bad32c68f0d8fd453"><td class="memItemLeft" align="right" valign="top">virtual CType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#a2c6e285f9f27ef7bad32c68f0d8fd453">operator*</a> ()</td></tr>
<tr class="separator:a2c6e285f9f27ef7bad32c68f0d8fd453"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0fc335ecb4fac2a292f3b7e7ffd33c7"><td class="memItemLeft" align="right" valign="top">virtual CType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#aa0fc335ecb4fac2a292f3b7e7ffd33c7">operator[]</a> (int index)</td></tr>
<tr class="separator:aa0fc335ecb4fac2a292f3b7e7ffd33c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab798d5e461aaea13ad76b25753342346"><td class="memItemLeft" align="right" valign="top">virtual xHandle&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#ab798d5e461aaea13ad76b25753342346">operator&amp;</a> ()</td></tr>
<tr class="separator:ab798d5e461aaea13ad76b25753342346"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8ff3df4c03ba3dd69d163058fb877ba"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#ab8ff3df4c03ba3dd69d163058fb877ba">operator xHandle</a> ()</td></tr>
<tr class="separator:ab8ff3df4c03ba3dd69d163058fb877ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae22cc95ca1d2fd48bc9a70b17c4e56d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#aae22cc95ca1d2fd48bc9a70b17c4e56d">operator==</a> (<a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;gc)</td></tr>
<tr class="separator:aae22cc95ca1d2fd48bc9a70b17c4e56d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabf6aa22cd176b662a6aec0a7f7fa447"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#aabf6aa22cd176b662a6aec0a7f7fa447">operator!=</a> (<a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;gc)</td></tr>
<tr class="separator:aabf6aa22cd176b662a6aec0a7f7fa447"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb7d1326327b5ab27a935af7dee98b59"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#acb7d1326327b5ab27a935af7dee98b59">operator==</a> (CType *elem)</td></tr>
<tr class="separator:acb7d1326327b5ab27a935af7dee98b59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ccd0373773e6dfa517108dfdf2cdeb4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#a2ccd0373773e6dfa517108dfdf2cdeb4">operator!=</a> (CType *elem)</td></tr>
<tr class="separator:a2ccd0373773e6dfa517108dfdf2cdeb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab382fa1f1681482b3b5acf62df1face2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#ab382fa1f1681482b3b5acf62df1face2">reference</a> ()</td></tr>
<tr class="separator:ab382fa1f1681482b3b5acf62df1face2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8a166285a27dad69e0153bca7b6b88d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#ad8a166285a27dad69e0153bca7b6b88d">release</a> ()</td></tr>
<tr class="separator:ad8a166285a27dad69e0153bca7b6b88d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b8a2e0f42aec92f550bc40f29576bc0"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#a0b8a2e0f42aec92f550bc40f29576bc0">count</a> ()</td></tr>
<tr class="separator:a0b8a2e0f42aec92f550bc40f29576bc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a7c68205da35740e35505fca540fc5b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#a6a7c68205da35740e35505fca540fc5b">weakTo</a> (<a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;gc)</td></tr>
<tr class="separator:a6a7c68205da35740e35505fca540fc5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adea057fa184e0afd46abc0b6e9d4b762"><td class="memItemLeft" align="right" valign="top">virtual xHandle&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#adea057fa184e0afd46abc0b6e9d4b762">clone</a> ()</td></tr>
<tr class="separator:adea057fa184e0afd46abc0b6e9d4b762"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab35bfc017cd77053934dd6badb162acd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#ab35bfc017cd77053934dd6badb162acd">isValid</a> ()</td></tr>
<tr class="separator:ab35bfc017cd77053934dd6badb162acd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e314e4db601a2de651f69833dd78dc6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/ddd/classgc_handle_t.html#a2e314e4db601a2de651f69833dd78dc6">operator bool</a> ()</td></tr>
<tr class="separator:a2e314e4db601a2de651f69833dd78dc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a958083a4d6cb648dd5cfd3292ec109de"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/class__gc__.html#a958083a4d6cb648dd5cfd3292ec109de">lock</a> ()</td></tr>
<tr class="separator:a958083a4d6cb648dd5cfd3292ec109de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a787f0334817f64acc6f41eb0839c3f58"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/class__gc__.html#a787f0334817f64acc6f41eb0839c3f58">unlock</a> ()</td></tr>
<tr class="separator:a787f0334817f64acc6f41eb0839c3f58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a76c241a4d62d2efdac57d2cfe4c0f"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dac/class_c_object.html#a26a76c241a4d62d2efdac57d2cfe4c0f">isThread</a> ()</td></tr>
<tr class="separator:a26a76c241a4d62d2efdac57d2cfe4c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a99eeb7570f75b51df025d2a4c8b0c12a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/dc8/struct__gc___1_1_g_c___t.html">GC_T</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dee/class__gc__.html#a99eeb7570f75b51df025d2a4c8b0c12a">m_gc</a></td></tr>
<tr class="separator:a99eeb7570f75b51df025d2a4c8b0c12a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class CType&gt;<br/>
class gcHandleT&lt; CType &gt;</h3>

<p><a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a> is a template class to provide a Simple Garbage Collector </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa8e99b3f41bdbdd88425e25dc36f42a6"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::<a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a> </td>
          <td>(</td>
          <td class="paramtype">CType *&#160;</td>
          <td class="paramname"><em>elem</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Construct both initialized and uninitialized the object. </p>

</div>
</div>
<a class="anchor" id="a8571d5ecadf1847090b04d1ad57f15d5"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::<a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;&#160;</td>
          <td class="paramname"><em>gc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor with reference to other gcHandleT&lt;CType&gt; </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gc</td><td>is <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a> object </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="adea057fa184e0afd46abc0b6e9d4b762"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual xHandle <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Clone a new <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a> </p>
<div class="fragment"><div class="line"><span class="comment">// clone p1 to p2</span></div>
<div class="line">p2 = p1.clone();</div>
</div><!-- fragment --> <dl class="section return"><dt>Returns</dt><dd>a new GC_T </dd></dl>

</div>
</div>
<a class="anchor" id="a0b8a2e0f42aec92f550bc40f29576bc0"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::count </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the reference count. </p>
<dl class="section return"><dt>Returns</dt><dd>reference count. </dd></dl>

</div>
</div>
<a class="anchor" id="a26a76c241a4d62d2efdac57d2cfe4c0f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CObject::isThread </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Check current object that inherits from <a class="el" href="../../d0/d26/class_c_thread.html">CThread</a> class or not. </p>
<dl class="section note"><dt>Note</dt><dd>The isTherad() will be override by <a class="el" href="../../d0/d26/class_c_thread.html">CThread</a> class. </dd></dl>

<p>Reimplemented in <a class="el" href="../../d0/d26/class_c_thread.html#ab2513fd0fcad30e2e6605609c91f1984">CThread</a>.</p>

</div>
</div>
<a class="anchor" id="ab35bfc017cd77053934dd6badb162acd"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::isValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Check data valid </p>

</div>
</div>
<a class="anchor" id="a958083a4d6cb648dd5cfd3292ec109de"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void _gc_::lock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Lock resource. </p>

</div>
</div>
<a class="anchor" id="a2e314e4db601a2de651f69833dd78dc6"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator for data valid checked. </p>

</div>
</div>
<a class="anchor" id="a04b30dc7412919df10131b7967fbf705"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator CType * </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator 'CType*', to return the element point </p>
<dl class="section return"><dt>Returns</dt><dd>element point </dd></dl>

</div>
</div>
<a class="anchor" id="ab8ff3df4c03ba3dd69d163058fb877ba"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator xHandle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator xHandle to return the GC_T point. </p>

</div>
</div>
<a class="anchor" id="aabf6aa22cd176b662a6aec0a7f7fa447"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator!= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;&#160;</td>
          <td class="paramname"><em>gc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a2ccd0373773e6dfa517108dfdf2cdeb4"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator!= </td>
          <td>(</td>
          <td class="paramtype">CType *&#160;</td>
          <td class="paramname"><em>elem</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab798d5e461aaea13ad76b25753342346"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual xHandle <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator&amp; </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator '&amp;' to return the GC_T point. </p>

</div>
</div>
<a class="anchor" id="a2c6e285f9f27ef7bad32c68f0d8fd453"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual CType&amp; <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator* </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator '*' to return the element contents. </p>
<dl class="section return"><dt>Returns</dt><dd>element </dd></dl>

</div>
</div>
<a class="anchor" id="ad7f7dff891cf46e8fb191a13f8a080be"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual CType* <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator-&gt; </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator '-&gt;', to return the element point </p>
<dl class="section return"><dt>Returns</dt><dd>element point </dd></dl>

</div>
</div>
<a class="anchor" id="afa65ed5c2bf8f467839f30979e507f2d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt;CType&gt;&amp; <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;&#160;</td>
          <td class="paramname"><em>gc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator '=' to refer to a <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a> object and increase the reference count. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gc</td><td>is <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a> object </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8c0052d6ceaa6fa5015f569fda8ca08a"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt;CType&gt;&amp; <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">CType *&#160;</td>
          <td class="paramname"><em>elem</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator '=' to refer to new element </p>

</div>
</div>
<a class="anchor" id="a8f51ac1db031f84fa5e76037c38f4589"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">xHandle&#160;</td>
          <td class="paramname"><em>gc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator '=' to refer to GC_T point </p>

</div>
</div>
<a class="anchor" id="aae22cc95ca1d2fd48bc9a70b17c4e56d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator== </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;&#160;</td>
          <td class="paramname"><em>gc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="acb7d1326327b5ab27a935af7dee98b59"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator== </td>
          <td>(</td>
          <td class="paramtype">CType *&#160;</td>
          <td class="paramname"><em>elem</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa0fc335ecb4fac2a292f3b7e7ffd33c7"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual CType&amp; <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Operator [] array to return the element contents. </p>
<dl class="section return"><dt>Returns</dt><dd>element </dd></dl>

</div>
</div>
<a class="anchor" id="ab382fa1f1681482b3b5acf62df1face2"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::reference </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Reference to element </p>

<p>Reimplemented from <a class="el" href="../../df/dee/class__gc__.html#ab889108bb8c0dfe3eabb6e9509f38c12">_gc_</a>.</p>

</div>
</div>
<a class="anchor" id="ad8a166285a27dad69e0153bca7b6b88d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Releases element </p>

<p>Reimplemented from <a class="el" href="../../df/dee/class__gc__.html#ac58b2d3e3a3762528fffe36dcfa4f0c2">_gc_</a>.</p>

</div>
</div>
<a class="anchor" id="a787f0334817f64acc6f41eb0839c3f58"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void _gc_::unlock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Unlock resource. </p>

</div>
</div>
<a class="anchor" id="a6a7c68205da35740e35505fca540fc5b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class CType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt;::weakTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a>&lt; CType &gt; &amp;&#160;</td>
          <td class="paramname"><em>gc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Refers to a <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a> object without reference count </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gc</td><td>is <a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a> object </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a99eeb7570f75b51df025d2a4c8b0c12a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/dc8/struct__gc___1_1_g_c___t.html">GC_T</a>* _gc_::m_gc</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d4/ddd/classgc_handle_t.html">gcHandleT</a></li>
    <li class="footer">Generated on Fri Apr 11 2014 23:43:26 for uCXpresso.BLE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
